import { Module,Global } from '@nestjs/common';
import { RedisUtilsService } from './redis-utils.service';
import {RedisModule} from 'nestjs-redis'
//全局模块
@Global()
@Module({
  imports:[
    RedisModule.register({
      host:'127.0.0.1',
      port:6379,
      password:'',
      db:0
    })
  ],
  providers: [RedisUtilsService],
  exports:[RedisUtilsService] //对外提供
})
export class RedisUtilsModule {}
